package com.roncoo.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.roncoo.order.entity.EduCourse;
import com.roncoo.order.entity.OrderInfo;
import com.roncoo.order.entity.User;

import java.util.List;
import java.util.Map;

/**
 * (OrderInfo)表服务接口
 *
 * @author makejava
 * @since 2021-03-24 18:40:21
 */
public interface OrderInfoService extends IService<OrderInfo> {
    IPage<OrderInfo> queryAll(Page page, OrderInfo orderInfo, User user, EduCourse eduCourse);

    IPage<OrderInfo> findAllById(Page page, OrderInfo orderInfo, User user, EduCourse eduCourse);

    int getId(OrderInfo orderInfo);

    int updStatusAndAdd(int oid);

    boolean getOneOrder(Integer uid, Integer cid);

    IPage<List<Map>> findAllBylecturer_id(Integer id, Page page);
}
